package com.ruoyi.material.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import java.util.Date;

/**
 * 资料评分对象 sys_user_material
 * 
 * @author hsx
 * @date 2022-01-09
 */
public class SysUserMaterial extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 用户ID */
    private Long userId;

    /** 材料ID */
    private Long materialId;

    /** 材料描述 */
    @Excel(name = "材料描述")
    private String describes;

    /** 党支部*/
    @Excel(name = "党支部")
    private String deptName;

    /** 上传人 */
    @Excel(name = "上传人")
    private String uploadBy;

    /** 上传时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上传时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date uploadTime;


    /** 评分 */
    @Excel(name = "评分")
    private Long score;

    /** 材料名称 */
    private String fileName;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public String getDescribes() {
        return describes;
    }

    public void setDescribes(String describes) {
        this.describes = describes;
    }

    public String getDeptName() {
        return deptName;
    }

    public void setDeptName(String deptName) {
        this.deptName = deptName;
    }

    public String getUploadBy() {
        return uploadBy;
    }

    public void setUploadBy(String uploadBy) {
        this.uploadBy = uploadBy;
    }

    public Date getUploadTime() {
        return uploadTime;
    }

    public void setUploadTime(Date uploadTime) {
        this.uploadTime = uploadTime;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }
    public void setScore(Long score) 
    {
        this.score = score;
    }

    public Long getScore() 
    {
        return score;
    }

    @Override
    public String toString() {
        return "SysUserMaterial{" +
                "userId=" + userId +
                ", materialId=" + materialId +
                ", score=" + score +
                ", describes='" + describes + '\'' +
                ", deptName='" + deptName + '\'' +
                ", uploadBy='" + uploadBy + '\'' +
                ", uploadTime=" + uploadTime +
                ", fileName='" + fileName + '\'' +
                '}';
    }
}
